﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/admin/TempAdmin.master" CodeFile="Product_RepresentImage.aspx.cs" Inherits="Product_RepresentImage" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<asp:Content ID="RepresentImageCT" runat="server" ContentPlaceHolderID="ContentRight">
    <form id="RepresentImageForm" runat="server">
        <div>
            <asp:ScriptManager runat="server" ID="RepresentImage" runat="server"></asp:ScriptManager>
            <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            </telerik:RadAjaxManager>
            <table>
                    <tr>
                        <td>
                            <img src="../img/pixel_trans.gif" height="10px" />
                        </td>
                    </tr>
                    <tr>
                        <td align="center">
                              <asp:Label ID="lblHeader" runat="server" Text="Ảnh đại diện" ForeColor="#003300" Font-Size="Large" Font-Bold="True"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <img src="../img/pixel_trans.gif" height="10px" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <table cellpadding="20"  border="1px">
                                <tr>
                                    <td align="right" style="width:150px">
                                        <asp:Label ID="lblID" runat="server" ForeColor="Black" Text="Mã sản phẩm: "></asp:Label>
                                    </td>
                                    <td>
                                       <asp:Label
                                        ID="lblProductID" runat="server" ForeColor="Black"></asp:Label>
                                    </td>
                                </tr>
                                
                                <tr>
                                   <td><img src="../img/pixel_trans.gif" height="10px" /></td> 
                                </tr>
                                
                                <tr>
                                    <td align="right" style="width:150px">
                                       <asp:Label ID="lblName" runat="server" ForeColor="Black" Text="Tên sản phẩm: "></asp:Label>
                                    </td>
                                    <td>
                                       <asp:Label ID="lblProductName" runat="server" ForeColor="Black"></asp:Label>
                                    </td>
                                </tr>
                                
                                <tr>
                                   <td><img src="../img/pixel_trans.gif" height="10px" /></td> 
                                </tr>
                                
                                <tr>
                                    <td align="right" style="width:150px">
                                       <asp:Label ID="lblImage" runat="server" ForeColor="Black" Text="Ảnh cũ: "></asp:Label>
                                    </td>
                                    <td>
                                        <asp:Image ID="imgProductRepresent" runat="server" Height="150px" Width="100px" />
                                    </td>
                                </tr>
                                
                                <tr>
                                   <td><img src="../img/pixel_trans.gif" height="10px" /></td> 
                                </tr>
                               
                               <tr>
                                    <td align="right"><asp:Label ID="lblRepresentImage" ForeColor="Black" runat="server" Text="Đường dẫn ảnh: "></asp:Label></td>
                                    <td>
                                           <telerik:RadUpload ID="RadUpload1" runat="server"                         
                                                ControlObjectsVisibility="none"
                                                MaxFileInputsCount="5"
                                                OverwriteExistingFiles="true" 
                                                TargetFolder="~/img_product" 
                                                Width="282px" 
                                                InputSize="25">                        
                                           </telerik:RadUpload>  
                                           <br/>
                                           <asp:Label ID="lblImageType" ForeColor="Black" runat="server"></asp:Label>    
                                    </td>
                                </tr>
                                <tr>
                                    <td></td>
                                    <td>
                                        <asp:Button ID="btnSave" Text="Sửa" runat="server" Width="58px" 
                                            onclick="btnSave_Click" />
                                        &nbsp;&nbsp;
                                        <asp:Button ID="btnCancel" Text="Thoát" runat="server" Width="58px" 
                                            onclick="btnCancel_Click" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
            </table>
        </div>
    </form>
</asp:Content>
    
